<template>
  <div class="cateStrBar pad">
    <span v-for="(clItem,i) in categoryNameLists">{{ clItem | filterCate(i,categoryNameLists)}}</span>
  </div>
</template>
<script>
export default {
  name: 'Pagination',
  props: {
    list: {
      type: Array,
      default() {
        return []
      }
    },
    label:{
       type: [String,Number]
    }
  },
  computed: {
    categoryNameLists(){
      const label =this.label
      if(label){
        this.list.map((item)=>item = item[label])
      }
      return this.list
    }
  },
  methods: {
  }
}
</script>
<style lang="scss">

</style>
<style scoped>

</style>
